package com.example.higo.model.entity.homepage;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by wj on 2016/11/6.
 */

public class HomePageTab {

    /**
     * code : 0
     * data : {"tab_titles":["HOT","NEW IN","LIFE"],"h5_url":"http://m.lehe.com/shop/newin/","web_title":"HIGO来了","app_title":"HIGO","top_tabs":[{"text":"品牌A-Z","url":"higo://brand.higo","is_new":1},{"text":"分类","url":"higo://category.higo","is_new":0},{"text":"新品发布","url":"higo://open_webview.higo?json_params=%7B%22url%22%3A%22https%3A%2F%2Fm.lehe.com%2Fshop%2Fnewin%2F%22%2C%22title%22%3A%22%E6%96%B0%E5%93%81%E5%8F%91%E5%B8%83%22%7D","is_new":0}],"bottom_tabs":[{"text":"首页"},{"text":"时尚圈"},{"text":"买手"},{"text":"消息"},{"text":"我的"}]}
     */

    @SerializedName("code")
    private int code;
    /**
     * tab_titles : ["HOT","NEW IN","LIFE"]
     * h5_url : http://m.lehe.com/shop/newin/
     * web_title : HIGO来了
     * app_title : HIGO
     * top_tabs : [{"text":"品牌A-Z","url":"higo://brand.higo","is_new":1},{"text":"分类","url":"higo://category.higo","is_new":0},{"text":"新品发布","url":"higo://open_webview.higo?json_params=%7B%22url%22%3A%22https%3A%2F%2Fm.lehe.com%2Fshop%2Fnewin%2F%22%2C%22title%22%3A%22%E6%96%B0%E5%93%81%E5%8F%91%E5%B8%83%22%7D","is_new":0}]
     * bottom_tabs : [{"text":"首页"},{"text":"时尚圈"},{"text":"买手"},{"text":"消息"},{"text":"我的"}]
     */

    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @SerializedName("h5_url")
        private String h5Url;
        @SerializedName("web_title")
        private String webTitle;
        @SerializedName("app_title")
        private String appTitle;
        @SerializedName("tab_titles")
        private List<String> tabTitles;
        /**
         * text : 品牌A-Z
         * url : higo://brand.higo
         * is_new : 1
         */

        @SerializedName("top_tabs")
        private List<TopTabsBean> topTabs;
        /**
         * text : 首页
         */

        @SerializedName("bottom_tabs")
        private List<BottomTabsBean> bottomTabs;

        public String getH5Url() {
            return h5Url;
        }

        public void setH5Url(String h5Url) {
            this.h5Url = h5Url;
        }

        public String getWebTitle() {
            return webTitle;
        }

        public void setWebTitle(String webTitle) {
            this.webTitle = webTitle;
        }

        public String getAppTitle() {
            return appTitle;
        }

        public void setAppTitle(String appTitle) {
            this.appTitle = appTitle;
        }

        public List<String> getTabTitles() {
            return tabTitles;
        }

        public void setTabTitles(List<String> tabTitles) {
            this.tabTitles = tabTitles;
        }

        public List<TopTabsBean> getTopTabs() {
            return topTabs;
        }

        public void setTopTabs(List<TopTabsBean> topTabs) {
            this.topTabs = topTabs;
        }

        public List<BottomTabsBean> getBottomTabs() {
            return bottomTabs;
        }

        public void setBottomTabs(List<BottomTabsBean> bottomTabs) {
            this.bottomTabs = bottomTabs;
        }

        public static class TopTabsBean {
            @SerializedName("text")
            private String text;
            @SerializedName("url")
            private String url;
            @SerializedName("is_new")
            private int isNew;

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public int getIsNew() {
                return isNew;
            }

            public void setIsNew(int isNew) {
                this.isNew = isNew;
            }
        }

        public static class BottomTabsBean {
            @SerializedName("text")
            private String text;

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }
        }
    }
}
